package com.mcxx.modules.statistics.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mcxx.modules.miniSalvation.fundpay.dto.BaseExcelEntity;
import com.mcxx.modules.miniSalvation.fundpay.entity.FundPayEntity;
import lombok.Data;

import java.io.Serializable;


@Data
public class FundPayReportCompare extends BaseExcelEntity implements Serializable {

    private static final long serialVersionUID = 2639861709631772115L;

    @Excel(name = "区划编码", width = 20)
    private String areaCode;

    @Excel(name = "区划名称", width = 20)
    private String areaName;

    @Excel(name = "报表名称", width = 20)
    private String reportName;

    @Excel(name = "报表项名称", width = 20)
    private String reportTarget;

    @Excel(name = "错误描述", width = 20)
    private String msg;

    @Excel(name = "原因分析", width = 20)
    private String remark;

    public static FundPayReportCompare generateDTOByCondition(FundPayEntity rollObj, Object sub, String reportName, String reportTarget) {
        FundPayReportCompare result = new FundPayReportCompare();
        result.setAreaCode(rollObj.getArea());
        result.setAreaName(rollObj.getAreaCode());
        result.setReportName(reportName);
        result.setReportTarget(reportTarget);
        result.setMsg("报表与名册相差：" + sub);
        return result;
    }
}
